package calcfactory;

public class CalcFactory {
    public calc getCalc(int i){
        if(i==1){
            return new Add();
        }else if (i==2){
            return new subtraction();
        }else {
            return null;
        }
    }
}
